#include "common.h"

int main(int argc, char *argv[]){
	char *name = "NEWTON.PAS";
	char *source_file_name = "string";
	char dte[DATE_STRING_LENGTH]={'\0'};
	FILE *file=init_lister(name, source_file_name, dte);
	return 0;
}

FILE *init_lister(const char *name, char source_file_name[], char dte[]){
   time_t t;
   time(NULL);
   FILE *file=NULL;
   strcpy(source_file_name, name);
   file=fopen(source_file_name, "r+");
   if(file != NULL)
      printf("\nOpened successfully\n");
   strcpy(dte,asctime(localtime(&t)));
   return file;
}
